import request from '@/utils/request.js'

// GET,PATCH请求 的参数体用 data: {}
// POST,DELETE请求 的参数体用 params: {}

export const getSearchSuggestions = val => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q: val
    }
  })
}
export const getSearchResult = val => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params: val
  })
}
